package com.example.myadmin.student.mapper;

import com.example.myadmin.student.entity.Student;
import com.example.myadmin.student.vo.StudentQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface StudentMapper {
// 根据条件查询数据
    List<Student> getStudentList(StudentQuery studentQuery);
//    统计学生记录数
    Long getCount(StudentQuery studentQuery);
//插入学生
    void insertStudent(Student student);
    //删除学生
    void deleteByStuId(@Param("list") List<String> ids);

    //根据id查找学生
    Student selectByStuIdUser(Integer id);

    //修改学生
    void updateStudentById(Student student);
}
